<!--
 * @Author: jay
 * @Date: 2021-08-11 23:40:16
 * @LastEditTime: 2021-08-12 08:15:11
 * @LastEditors: Please set LastEditors
 * @Description: 选择器
 * @FilePath: \Briup\Common\study\2-css\4-css-selector.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选择器</title>
    <style>
        ul,p,body{
            margin: 0;
        }
        div.box{
            color: teal;
        }
        div {
            color: tomato;
        }
        ul.box{
            color: violet;
        }
        ul.box::after{
            content: "";
            display: block;
            clear: both;
        }
        ul.box > li{
            float: left;
            width: 100px;
            text-align: center;
        }
        div.content > *{
            color: yellowgreen;
        }
    </style>
</head>
<body>
    <div class="box" id="one">this id is one ,this clas is box</div>
    <div class="box">this clas is box</div>
    <div class="container">this clas is container</div>
    <ul class="box">
        <li>one</li>
        <li>two</li>
        <li>three</li>
    </ul>
    <p>hello world</p>
    <div class="content">
        <p>hello</p>
    </div>
    <div class="content">
        <div>hello div</div>
    </div>
</body>
</html>